import request from '@/utils/requestPro';


/**
 * 查询类目
 * @param params
 */
export function getListAllApi(params) {
	return request({
		url: `/admin/categoryTable/getListAll`,
		method: 'get',
		params,
	});
}

/**
 * 查询商品分类类目缓存树
 * @param params
 */
export function getCategoryLisApi(params) {
	return request({
		url: `/admin/merchant/plat/product/category/cache/tree`,
		method: 'get',
		params,
	});
}

/**
 * 查询经营品类信息
 * @param params
 */
export function selectManageInfoApi(params) {
	return request({
		url: `/admin/categoryTable/selectManageInfo`,
		method: 'get',
		params,
	});
}

/**
 * 删除--经营品类信息
 * @param params
 */
export function deletaManageInfoApi(params) {
	return request({
		url: `/admin/categoryTable/deletaManageInfo`,
		method: 'delete',
		params,
	});
}

/**
 * 经营品类提交审核
 * 
 */
export function manageCategoryAuditApi(data) {
	return request({
		url: `/admin/categoryTable/manageCategoryAudit`,
		method: 'post',
		data,
	});
}

/**
 * 品牌分页列表
 * @param params
 */
export function brandlistApi(params) {
	return request({
		url: `/admin/categoryTable/list`,
		method: 'get',
		params,
	});
}

/**
 * 待审核记录
 * @param params
 */
export function businessQueryAuditApi() {
	return request({
		url: `/admin/categoryTable/businessQueryAudit`,
		method: 'get',
	});
}

/**
 * 商家撤回审核
 * @param params
 */
export function merchantRevocationApi() {
	return request({
		url: `/admin/categoryTable/merchantRevocation`,
		method: 'put',
	});
}